package com.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class SqlUtil {
	private static final String URL 
		= "jdbc:mysql://localhost:3306/homedesign_db?&useUnicode=true&characterEncoding=utf-8";
	private static final String USER="root";
	private static final String PSW = "15723";
	static {
		try {
			Class.forName("com.mysql.jdbc.Driver");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}
	public static Connection getConn() {
		Connection conn = null;
		try {
			conn = DriverManager.getConnection(URL,USER,PSW);
		} catch (Exception e) {
			System.out.println("AAA"+e.getMessage());
		}
		return conn;
	}
}



